import AdminDashboard from "@/views/admin/AdminDashboard.vue";

export default [
    {
        path: '/admin',
        name: 'Admin',
        component: AdminDashboard,
        children: [
            {
                path: 'users',
                name: 'UserManagement',
                component: () => import('../../views/admin/UserManagement.vue'),
            },
            {
                path: 'blogs',
                name: 'BlogManagement',
                component: () => import('../../views/admin/BlogManagement.vue')
            },
            {
                path: 'activities',
                name: 'ActivityManagement',
                component: () => import('../../views/admin/ActivityManagement.vue')
            },
            {
                path: 'partitions',
                name: 'PartitionManagement',
                component: () => import('../../views/admin/PartitionManagement.vue')
            },
            {
                path: 'feedbacks',
                name: 'FeedbackManagement',
                component: () => import('../../views/admin/FeedbackManagement.vue')
            },
            // 默认重定向到用户管理
            {
                path: '',
                redirect: { name: 'UserManagement' }
            }
        ]
    }
];